import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'reset-css';
import { Swipe, SwipeItem } from 'vant';
import { Lazyload } from 'vant';
import VueLazyload from 'vue-lazyload'; // 懒加载
import LoadMore from 'load-more-zhao'; //瀑布流

Vue.config.productionTip = false
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(VueLazyload);
Vue.use(LoadMore);

// or with options
const loadimage = require('@/assets/images/img_loading.gif');
// const errorimage = require('./assets/error.gif');

Vue.use(VueLazyload, {
  preLoad: 1.3,
  // error: errorimage,
  loading: loadimage,
  attempt: 1
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
